package org.android.brasil.projetos.spacehero.andengine;

import org.anddev.andengine.entity.Entity;
import org.anddev.andengine.entity.primitive.Line;
import org.android.brasil.projetos.spacehero.base.GameEntityFactory;
import org.android.brasil.projetos.spacehero.base.IGameEntity;

public class AndEngineGameEntityFactory extends GameEntityFactory {
	
	@Override
	protected IGameEntity createDummy() {
		
		return this.createAndEngineDummy();
	}
	
	public AndEngineGameEntity createAndEngineDummy() {

		Entity entity = new Entity(0, 0);
		
		Line line = new Line(-25, -25, 25, -25);
		entity.attachChild(line);

		line = new Line(-25, -25, 0, 25);
		entity.attachChild(line);
		
		line = new Line(25, -25, 0, 25);
		entity.attachChild(line);
		
		return new AndEngineGameEntity(entity);
	}
}
